(function($win) {
	$win.yy_homepage = function() {
		$(document).on('click', '.register', function() {
			$.fn.dialog($('.registerTpl').html());
		}).on('click', '.login', function() {
			$.fn.dialog($('.loginTpl').html());
		}).on('click', '.use-btn', function() {
			$.fn.dialog($('.modleStyleTpl').html());
		}).on('click', '.styl-content li', function() {
			$('.styl-content li').removeClass('current');
			$(this).addClass('current');
		})
	}
})(window)

